package br.estacio.contatos.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class EditarContatoPlace extends Place {
	
	private String contatoId;
	
	public EditarContatoPlace(String token) {
		contatoId = token;
	}
	
	public String getContatoId() {
		return contatoId;
	}

	public static class Tokenizer implements PlaceTokenizer<EditarContatoPlace> {
		
		@Override
		public String getToken(EditarContatoPlace place) {
			return place.getContatoId();
		}

		@Override
		public EditarContatoPlace getPlace(String token) {
			return new EditarContatoPlace(token);
		}
	}

}
